﻿function isNumber(evt) {
    var charCode = (evt.which) ? evt.which : event.keyCode
    if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57))
        return false;

    return true;
}

function isAlphabet(evt) {
    var charCode = (evt.which) ? evt.which : event.keyCode
    if (charCode != 46 && charCode > 31 && (charCode < 97 || charCode > 122))
        return false;

    return true;
}

function isAlphaNumber(e) {
    /*var k;
    document.all ? k = e.keyCode : k = e.which;
    return ((k > 64 && k < 91) || (k > 96 && k < 123) || k == 8 || (k >= 48 && k <= 57));*/
}

function isValidDatechar(text) {
    var c = event.keyCode;

    event.keyCode = (!((c >= 48 && c <= 57) || (c == 47))) ? 0 : event.keyCode;
}